import axios from 'axios'
import { BaseService } from './BaseService'

export class SearchService extends BaseService {
    // get
    // 获取专题、标签、用户
    public async get(type: string, keyword: string, p: number, n: number) {
        const url = this.searchBaseUrl + '/' + type + '?keyword=' + keyword + '&p=' + p + '&n=' + n
        return await axios.get(url)
    }
}
